package org.example.leetCode;

/**
 * @author Vader
 * @date 2021/9/28
 **/
public class MinDistance {
    public int minDistance(String word1, String word2) {
        if ("".equals(word1) && "".equals(word2)) {
            return 0;
        } else if ("".equals(word1)) {
            return word2.length();
        } else {
            return word1.length();
        }


    }
}